// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__FBA6F8A9_7E44_47F6_9B3C_AFC5E25C3817__INCLUDED_)
#define AFX_STDAFX_H__FBA6F8A9_7E44_47F6_9B3C_AFC5E25C3817__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <windows.h>
#include <stdio.h>
__inline unsigned short __htons(unsigned short n)
{
    return ((n & 0xFF) << 8) | ((n & 0xFF00) >> 8);
}

__inline unsigned short __ntohs(unsigned short n)
{
    return ((n & 0xFF) << 8) | ((n & 0xFF00) >> 8);
}

__inline unsigned long __htonl(unsigned long n)
{
    return ((n & 0xFF) << 24) | ((n & 0xFF00) << 8) | ((n & 0xFF0000) >> 8) | ((n & 0xFF000000) >> 24);
}

__inline unsigned long __ntohl(unsigned long n)
{
    return ((n & 0xFF) << 24) | ((n & 0xFF00) << 8) | ((n & 0xFF0000) >> 8) | ((n & 0xFF000000) >> 24);
}
#define btoll __ntohl
#define btols __ntohs
#define ltobl __htonl
#define ltobs __htons

// TODO: reference additional headers your program requires here

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__FBA6F8A9_7E44_47F6_9B3C_AFC5E25C3817__INCLUDED_)
